home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
util
/
rexx
/
rmh.lha
/
rmh
/
install
< prev
next >
Wrap
Text File
|
1999-04-23
|
2KB
|
79 lines
; $VER: rmh_Install 4.5
(procedure choose
(set what
(askoptions
(prompt "What do you want to install?"
(help "Choose what you want to install")
(choices "rmh.library" "rmh.library guide" "examples")
)
)
)
)
(procedure selGuideDest
(set #installGuideDir
(askdir
(prompt "Select the directory where you want to "
"install rmh.library guide")
(help "This will install rmh.library guide")
(default "Ram Disk:")
)
)
)
(procedure copy-guide
(selGuideDest)
(copyfiles
(source (tackon #source-dir "DOCS/english/"))
(dest #installGuideDir)
(optional force)
(all)
)
)
(procedure selExDest
(set #installExDir
(askdir
(prompt "Select the directory where you want to "
"install the examples")
(help "This will install rmh.library examples")
(default "Ram Disk:")
)
)
)
(procedure copy-ex
(selExDest)
(copyfiles
(source (tackon #source-dir "EXAMPLES/"))
(dest #installExDir)
(optional force)
(all)
)
)
(procedure copy-lib
(copylib
(prompt "Installing rmh.library to LIBS:" )
(help "This will copy rmh.library to LIBS:")
(source (tackon #source-dir "LIBS/rmh.library"))
(dest @default-dest)
(confirm)
(optional "askuser" "force")
)
)
(welcome "Welcome to the rmh.library installation.\n")
(set @app-name "rmh.library")
(set @default-dest "LIBS:")
(set #source-dir (if (= 1 (exists @icon)) (pathonly (expandpath @icon))
(expandpath @icon))
)
(complete 0)
(choose)
(if (= 0 what) (exit))
(if (BITAND what 1) ((copy-lib)(complete 33)))
(if (BITAND what 2) (((copy-guide))(complete 66)))
(if (BITAND what 4) (copy-ex))(complete 100)